Optimal. Leaf size=68 \[ \frac {2 p}{9 x^3}-\frac {2 a p}{3 b x}-\frac {2 a^{3/2} p \tan ^{-1}\left (\frac {\sqrt {a} x}{\sqrt {b}}\right )}{3 b^{3/2}}-\frac {\log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{3 x^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 68, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2505, 269, 331,
211} \begin {gather*} -\frac {2 a^{3/2} p \text {ArcTan}\left (\frac {\sqrt {a} x}{\sqrt {b}}\right )}{3 b^{3/2}}-\frac {\log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{3 x^3}-\frac {2 a p}{3 b x}+\frac {2 p}{9 x^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 269
Rule 331
Rule 2505
Rubi steps
\begin {align*} \int \frac {\log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{x^4} \, dx &=-\frac {\log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{3 x^3}-\frac {1}{3} (2 b p) \int \frac {1}{\left (a+\frac {b}{x^2}\right ) x^6} \, dx\\ &=-\frac {\log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{3 x^3}-\frac {1}{3} (2 b p) \int \frac {1}{x^4 \left (b+a x^2\right )} \, dx\\ &=\frac {2 p}{9 x^3}-\frac {\log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{3 x^3}+\frac {1}{3} (2 a p) \int \frac {1}{x^2 \left (b+a x^2\right )} \, dx\\ &=\frac {2 p}{9 x^3}-\frac {2 a p}{3 b x}-\frac {\log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{3 x^3}-\frac {\left (2 a^2 p\right ) \int \frac {1}{b+a x^2} \, dx}{3 b}\\ &=\frac {2 p}{9 x^3}-\frac {2 a p}{3 b x}-\frac {2 a^{3/2} p \tan ^{-1}\left (\frac {\sqrt {a} x}{\sqrt {b}}\right )}{3 b^{3/2}}-\frac {\log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{3 x^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 70, normalized size = 1.03 \begin {gather*} \frac {2 p}{9 x^3}-\frac {2 a p}{3 b x}+\frac {2 a^{3/2} p \tan ^{-1}\left (\frac {\sqrt {b}}{\sqrt {a} x}\right )}{3 b^{3/2}}-\frac {\log \left (c \left (a+\frac {b}{x^2}\right )^p\right )}{3 x^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.04, size = 0, normalized size = 0.00 \[\int \frac {\ln \left (c \left (a +\frac {b}{x^{2}}\right )^{p}\right )}{x^{4}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.52, size = 62, normalized size = 0.91 \begin {gather*} -\frac {2}{9} \, b p {\left (\frac {3 \, a^{2} \arctan \left (\frac {a x}{\sqrt {a b}}\right )}{\sqrt {a b} b^{2}} + \frac {3 \, a x^{2} - b}{b^{2} x^{3}}\right )} - \frac {\log \left ({\left (a + \frac {b}{x^{2}}\right )}^{p} c\right )}{3 \, x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.42, size = 154, normalized size = 2.26 \begin {gather*} \left [\frac {3 \, a p x^{3} \sqrt {-\frac {a}{b}} \log \left (\frac {a x^{2} - 2 \, b x \sqrt {-\frac {a}{b}} - b}{a x^{2} + b}\right ) - 6 \, a p x^{2} - 3 \, b p \log \left (\frac {a x^{2} + b}{x^{2}}\right ) + 2 \, b p - 3 \, b \log \left (c\right )}{9 \, b x^{3}}, -\frac {6 \, a p x^{3} \sqrt {\frac {a}{b}} \arctan \left (x \sqrt {\frac {a}{b}}\right ) + 6 \, a p x^{2} + 3 \, b p \log \left (\frac {a x^{2} + b}{x^{2}}\right ) - 2 \, b p + 3 \, b \log \left (c\right )}{9 \, b x^{3}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 138 vs.
\(2 (63) = 126\).
time = 26.33, size = 138, normalized size = 2.03 \begin {gather*} \begin {cases} - \frac {\log {\left (0^{p} c \right )}}{3 x^{3}} & \text {for}\: a = 0 \wedge b = 0 \\\frac {2 p}{9 x^{3}} - \frac {\log {\left (c \left (\frac {b}{x^{2}}\right )^{p} \right )}}{3 x^{3}} & \text {for}\: a = 0 \\- \frac {\log {\left (a^{p} c \right )}}{3 x^{3}} & \text {for}\: b = 0 \\- \frac {a p \log {\left (x - \sqrt {- \frac {b}{a}} \right )}}{3 b \sqrt {- \frac {b}{a}}} + \frac {a p \log {\left (x + \sqrt {- \frac {b}{a}} \right )}}{3 b \sqrt {- \frac {b}{a}}} - \frac {2 a p}{3 b x} + \frac {2 p}{9 x^{3}} - \frac {\log {\left (c \left (a + \frac {b}{x^{2}}\right )^{p} \right )}}{3 x^{3}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.35, size = 73, normalized size = 1.07 \begin {gather*} -\frac {2 \, a^{2} p \arctan \left (\frac {a x}{\sqrt {a b}}\right )}{3 \, \sqrt {a b} b} - \frac {p \log \left (a x^{2} + b\right )}{3 \, x^{3}} + \frac {p \log \left (x^{2}\right )}{3 \, x^{3}} - \frac {6 \, a p x^{2} - 2 \, b p + 3 \, b \log \left (c\right )}{9 \, b x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.25, size = 55, normalized size = 0.81 \begin {gather*} \frac {\frac {2\,p}{3}-\frac {2\,a\,p\,x^2}{b}}{3\,x^3}-\frac {\ln \left (c\,{\left (a+\frac {b}{x^2}\right )}^p\right )}{3\,x^3}-\frac {2\,a^{3/2}\,p\,\mathrm {atan}\left (\frac {\sqrt {a}\,x}{\sqrt {b}}\right )}{3\,b^{3/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________